#include <tsin/library/TouhouBigBulletSeries.hpp>

#include <tsin/library/BuiltinImages.hpp>

using namespace tsin;

const char *TouhouBigBulletSeries::getImagePath()
{
        switch(shape) {
        case STAR:
        case CIRCLE:
        case BUTTERFLY:
        case DAGGER:
        case ELLIPSE:
        case FADING:
                return RES_PREFIX "bullet/etama6.png";
        case HEART:
                return RES_PREFIX "bullet/etama8.png";
        }
        return RES_PREFIX "bullet/etama.png";
}

int TouhouBigBulletSeries::getSizeX()
{
        return 32;
}

int TouhouBigBulletSeries::getSizeY()
{
        return 32;
}

int TouhouBigBulletSeries::getCoordX()
{
        switch(color) {
        case BLACK:
                return 0;
        case RED:
        case DARK_RED:
                return 32;
        case PINK:
        case DARK_PINK:
                return 64;
        case BLUE:
        case DARK_BLUE:
                return 96;
        case CYAN:
        case DARK_CYAN:
                return 128;
        case GREEN:
        case DARK_GREEN:
                return 160;
        case YELLOW:
        case DARK_YELLOW:
        case ORANGE:
                return 192;
        case WHITE:
                return 224;
        }
        return 0;
}

int TouhouBigBulletSeries::getCoordY()
{
        switch(shape) {
        case STAR:
                return 224;
        case CIRCLE:
                return 192;
        case BUTTERFLY:
                return 160;
        case DAGGER:
                return 128;
        case ELLIPSE:
                return 96;
        case FADING:
                return 64;
        case HEART:
                return 224;
        }
        return 0;
}
